package com.coolw.toolkit.hutool;

import org.dromara.hutool.crypto.asymmetric.RSA;
import org.junit.Test;

/**
 * RSA-非对称性加解密-测试类
 *
 * @author coolw
 * @date 2022/6/29 9:07
 */
public class RsaTest {

    @Test
    public void testRsa() {
        RSA rsa = new RSA();
        System.out.println("公钥:" + rsa.getPrivateKeyBase64());
        System.out.println("私钥:" + rsa.getPrivateKeyBase64());
    }
}
